package org.example.springboot.service;


import org.example.springboot.entity.SuperUser;
import org.example.springboot.mapper.SuperUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SuperUserService {

    @Autowired
    SuperUserMapper superUserMapper;

    public void insertUser(SuperUser superUser) {

        superUserMapper.insert(superUser);
    }

    public SuperUser selectUserById(SuperUser superUser) {
        return superUserMapper.selectByAccount(superUser.getAccount());
    }

    public void updateSuperUser(SuperUser superUser) {
        superUserMapper.updateSuperUser(superUser);
    }

}
